package com.csii.adhoc.system.auth.service;

import com.csii.adhoc.system.auth.AuthPo;
import com.csii.adhoc.system.auth.TMgnDirAuthVo;

import java.util.List;
import java.util.Set;

/**
 * @description: 权限接口
 * @author: panChuanJiang
 * @create: 2021-01-28 15:20
 */
public interface AuthService {
    /**
     * 增、删、改、权限 按optMode区分接口
     * @param authPo 权限对象
     * @param optMode A U D
     */
    void authMaintain(AuthPo authPo, String optMode);

    /**
     * 查询权限
     * @param authPo 权限对象
     * @return
     */
    List<AuthPo> selectListAuth(AuthPo authPo);

    List<TMgnDirAuthVo> getRoleAuthority(String roleId,String type);

    List<TMgnDirAuthVo> getUserAuthority(String userId, String type);

    Set<String> getUserInterface(String name);
}
